分布式事务:指一次事务操作跨越多个服务/数据库/节点,需要保证这些分散的操作整体满足事务性质(常见目标是 ACID 或某种一致性保证)。在分布式系统中常用两阶段提交(2PC)、三阶段提交(3PC)或基于消息/补偿的方案(如 Saga)来实现或替代。
A distributed transaction ensures all services either commit or roll back together.
分布式事务确保所有服务要么一起提交,要么一起回滚。
In a microservices architecture, relying on distributed transactions can reduce availability under network partitions.
在微服务架构中,依赖分布式事务在发生网络分区时可能降低系统可用性。
/dɪˈstrɪbjətɪd trænˈzækʃən/
distributed 来自拉丁语 distribuere(“分配、散布”),经法语/中古英语发展为“分布的”。transaction 来自拉丁语 transactio(“办理、完成”),由 *trans-*(“穿过、跨越”)+ agere(“做、驱动”)构成,后来在商业与计算机领域引申为“交易/事务”。组合成 distributed transaction,字面即“跨节点分布的事务处理”。